package ltd.hanamaki.unittest.testng.demo02;


import org.testng.annotations.Test;

/**
 * 给测试类中的测试方法来分组
 */
public class Grouping {

    @Test(groups = {"查询"})
    public void query() {
        System.out.println("query方法被执行");
    }

    @Test(groups = {"查询"})
    public void select() {
        System.out.println("select 方法被执行");
    }

    @Test(groups = {"查询","删除"})
    public void delete() {
        System.out.println("delete 方法被执行");
    }

    @Test(groups = {"查询","修改"})
    public void update() {
        System.out.println("update 方法被执行");
    }

    @Test(groups = {"添加"})
    public void insert() {
        System.out.println("insert 方法被执行");
    }

}
